home *** CD-ROM | disk | FTP | other *** search
/ MacWorld: Super Stacks! / Macworld CD.iso / HyperCard Archives / International / French v1.2.5.1 / Piles principales / Notes sur la version 1.2.5 / card_10449.txt < prev    next >
Text File  |  1989-10-04  |  2KB  |  80 lines

  1. -- card: 10449 from stack: in.5
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 5683
  5. -- name: selectedLine
  6.  
  7.  
  8. -- part contents for background part 7
  9. ----- text -----
  10. selectedLine
  11.  
  12. -- part contents for background part 9
  13. ----- text -----
  14. Nouvelles fonctions HyperTalk
  15. Carte 9 sur 10
  16.  
  17. -- part contents for background part 11
  18. ----- text -----
  19. Cette fonction renvoie la ligne o√π se trouve le texte s√©lectionn√©, sous la forme : line 
  20. <nombre> of <card | bkgnd> field <nombre>. Si rien n'est s√©lectionn√©, et que le point d'insertion est en dehors d'un champ, la fonction renvoie une cha√Æne vide.
  21.  
  22.  
  23.  
  24. -- part contents for background part 10
  25. ----- text -----
  26. aucun
  27.  
  28. -- part contents for background part 8
  29. ----- text -----
  30. the selectedLine
  31.  
  32. -- part contents for background part 31
  33. ----- text -----
  34. Select
  35. selectedChunk
  36. selectedField
  37. selectedText
  38.  
  39. -- part contents for background part 17
  40. ----- text -----
  41. --apr√®s ex√©cution des commandes suivantes :
  42. select char 20 to 35 of fld 3
  43. put the selectedLine
  44. --vous obtiendrez un r√©sultat du type :
  45. line 4 of bkgnd field 3
  46.  
  47. --s√©lection d'une ligne dans un champ :
  48. on mouseUp
  49.   set lockText of me to FALSE
  50.   click at the clickLoc
  51.   select the selectedLine
  52.   ...actions √©ventuelles...
  53.   set lockText of me to TRUE
  54. end mouseUp
  55.  
  56.  
  57. -- part contents for background part 18
  58. ----- text -----
  59. on selectedLineDemo
  60.  
  61. --affiche la description de la ligne contenant la ---s√©lection
  62.  
  63.    select char 25 to 30 of field "section"
  64.    put the selectedLine
  65.    wait 4 seconds
  66.    cleanExit -- dans le script du fond courant
  67. end selectedLineDemo
  68.  
  69. -- part contents for background part 35
  70. ----- text -----
  71. ‚Ä¢  Une ligne est d√©limit√©e par un caract√®re retour. 
  72.     Lorsqu'une ligne est coup√©e en deux pour une question 
  73.     de longueur, HyperCard consid√®re qu'il s'agit d'une seule 
  74.     ligne.
  75.  
  76. ‚Ä¢  La fonction selectedLine renvoie √©galement le num√©ro 
  77.     de ligne o√π se trouve le point d'insertion.
  78.  
  79. ‚Ä¢  Si la cha√Æne s√©lectionn√©e s'√©tend sur plusieurs lignes, 
  80.     the selectedLine ne d√©crit que la premi√®re.